package com.mmall.cart;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import pojo.Cart;

import java.util.List;

@FeignClient(
        url="http://localhost:18082",
        name="cart"
)
@RequestMapping("/cart")
public interface CartFeign {
    @GetMapping("/selectChkById/{userId}")
    public List<Cart> selectChkById(@PathVariable(name="userId") Integer userId);
}
